/*
 * @Author: gavin
 * @Date:   2017-12-22 15:20:10
 * @Last Modified by:   gavin
 * @Last Modified time: 2017-12-22 15:21:25
 */

const mobxMergeObservables = (target, source) => {
	if (!source) {
		return target;
	} else {
		for (let key in target) {
			if (typeof source[key] !== 'undefined') {
				target[key] = Object.assign(target[key], source[key]);
			}
		}
		return target;
	}
};
export default mobxMergeObservables;
